<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="ERP营运中心" prop="GWDFMLEGAL">
                <el-input v-model="form.GWDFMLEGAL" readOnly :clearable="!allDisabled">
                    <i v-show="!allDisabled" class="el-icon-search el-input__icon" @click="openGwdfmlegal" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户编号" prop="GWDF006">
                <el-input v-model="form.GWDF006" readOnly :clearable="!allDisabled">
                    <i v-show="!allDisabled" class="el-icon-search el-input__icon" @click="openGwdf006" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="变更单号">
                <el-input v-model="form.GWDFDOCNO" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="ERP订单号">
                <el-input v-model="form.GWDF003" readOnly :clearable="!allDisabled">
                    <i v-show="!allDisabled" class="el-icon-search el-input__icon" @click="openCOPTC" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="分销订单号" prop="GWDF001">
                <el-input v-model="form.GWDF001" readOnly :clearable="!allDisabled">
                    <i v-show="!allDisabled" class="el-icon-search el-input__icon" @click="openCOPTC" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="整单结束否">
                <el-select v-model="form.GWDF009" :disabled="allDisabled" clearable>
                    <el-option v-for="item in selectOptions.crm_gwdf_gwdf009" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="订单日期">
                <el-date-picker
                        type="date"
                        v-model="form.TC003"
                        value-format="yyyy-MM-dd"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请人">
                <el-input v-model="form.TC040" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请日期">
                <el-date-picker
                        type="date"
                        v-model="form.TC003"
                        value-format="yyyy-MM-dd"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="审核人">
                <el-input v-model="form.TC040" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="审核日期">
                <el-date-picker
                        type="date"
                        v-model="form.TC003"
                        value-format="yyyy-MM-dd"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="变更版本">
                <el-input v-model="form.GWDF002" readonly></el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="返利类型" prop="GWDF007">
                <el-select v-model="form.GWDF007">
                    <el-option v-for="item in selectOptions.crm_gwdf_gwdf007" :label="item.value"
                               :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>-->
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="税率">
                <el-input v-model="form.GWDF010"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="变更原因">
                <el-input type="textarea" v-model="form.GWDF032"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="原订单备注">
                <el-input type="textarea" v-model="form.GWDF031" :readOnly="allDisabled"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re">
                <div class="pos-ab" style="margin-bottom: 10px;">
                    <el-button type="primary" size="small"
                               @click="addData">添加
                    </el-button>
                    <el-button type="primary" size="small"
                               @click="delData">删除
                    </el-button>
                </div>
                <div class="table-responsive">
                    <table id="gwai770_edit_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwai770_edit_table">
                    </table>
                </div>
            </div>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" :disabled="isCheck"
                       @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwai770_edit"], $.noop);
</script>
